<template>
    <div class="audit-project-information-view">

      <el-form :inline="true" ref="elForm" :model="datas" size="small" label-width="130px">
        <el-row>
          <el-col :span="8">
            <el-form-item label="立项信息：" v-if="isOther">
              <div>{{datas.demand_info_name ? datas.demand_info_name : "无"}}</div>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="项目来源：" v-if="isOther">
              <div>{{datas.project_source_name ? datas.project_source_name : "无"}}</div>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="项目编号：">
              <div>{{datas.project_no ? datas.project_no : "无"}}</div>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="项目名称：">
              <div>{{datas.project_name ? datas.project_name : "无"}}</div>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="项目所属阶段：">
              <div>{{datas.project_phases_name ? datas.project_phases_name : "无"}}</div>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="项目级别：">
              <div>{{datas.project_level_name ? datas.project_level_name : "无"}}</div>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="项目类型：">
              <div>{{datas.project_category_name ? datas.project_category_name : "无"}}</div>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="申报类别：">
              <div>{{datas.sign_category_name ? datas.sign_category_name : "无"}}</div>
            </el-form-item>
          </el-col>
          <el-col :span="8" v-if="isOther">
            <el-form-item label="药物成分：">
              <div>{{datas.drug_ingredient ? datas.drug_ingredient : "无"}}</div>
            </el-form-item>
          </el-col>
          <el-col :span="8" v-if="isOther">
            <el-form-item label="药物类别：">
              <div>{{datas.drug_category ? datas.drug_category : "无"}}</div>
            </el-form-item>
          </el-col>
          <el-col :span="8" v-if="isOther">
            <el-form-item label="功能主治：">
              <div>{{datas.function_attend ? datas.function_attend : "无"}}</div>
            </el-form-item>
          </el-col>
          <el-col :span="8" v-if="isOther">
            <el-form-item label="剂型与规格：">
              <div>{{datas.drug_or_specifications ? datas.drug_or_specifications : "无"}}</div>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="项目负责人：">
              <div>{{datas.project_person_in_charge ? datas.project_person_in_charge : "无"}}</div>
            </el-form-item>
          </el-col>
          <el-col :span="8" v-if="isOther && datas.project_source_id == 2">
            <el-form-item label="委托单位：">
              <div>{{datas.entrusting_party ? datas.entrusting_party : "无"}}</div>
            </el-form-item>
          </el-col>
          <el-col :span="8" v-if="isOther">
            <el-form-item label="工期（天）：">
              <div>{{datas.duration}}</div>
            </el-form-item>
          </el-col>
          <el-col :span="8" v-if="isOther">
            <el-form-item label="计划开始时间：">
              <div>{{datas.plan_start_time ? dateFormat1('yyyy-mm-dd',datas.plan_start_time) : "无"}}</div>
            </el-form-item>
          </el-col>
          <el-col :span="8" v-if="isOther">
            <el-form-item label="计划结束时间：">
              <div>{{datas.plan_start_time ? dateFormat1('yyyy-mm-dd',datas.plan_end_time) : "无"}}</div>
            </el-form-item>
          </el-col>

          <el-col :span="8" v-if="!isOther || datas.reality_start_time">
            <el-form-item label="实际开始时间：">
              <div>{{datas.reality_start_time ? dateFormat1('yyyy-mm-dd',datas.reality_start_time) : "无"}}</div>
            </el-form-item>
          </el-col>
          <el-col :span="8" v-if="!isOther || datas.reality_end_time">
            <el-form-item label="实际结束时间：">
              <div>{{datas.reality_end_time ? dateFormat1('yyyy-mm-dd',datas.reality_end_time) : "无"}}</div>
            </el-form-item>
          </el-col>

        </el-row>

      </el-form>

      <el-form size="small" label-width="130px">
        <el-form-item label="项目技术方案书：">
          <file-preview :file-list="datas.project_design_book ? datas.project_design_book.tech : []" />
        </el-form-item>
        <el-form-item label="项目预算方案书：">
          <file-preview :file-list="datas.project_design_book ? datas.project_design_book.budget : []" />
        </el-form-item>
        <el-form-item label="其他：">
          <file-preview :file-list="datas.project_design_book ? datas.project_design_book.other : []" />
        </el-form-item>
      </el-form>



    </div>
</template>

<script>
    export default {
        name: "informationView",
        props:{
            datas:{
                type:Object,
                default:function () {
                    return{

                    }
                }
            },
            isOther:{
                type:Boolean,
                default:function () {
                    return false
                }
            }
        },
        data:function () {
            return{

            }
        },
    }
</script>

<style lang="scss" scoped>
  @import "@/assets/scss/views/projectManagement/audit/informationView.scss";
</style>
